package com.uton.rfidcontroller.common;

import android.app.Application;
import android.content.Context;

import com.tencent.bugly.Bugly;
import com.tencent.bugly.beta.Beta;
import com.uton.rfidcontroller.common.utils.LogUtil;
import com.uton.rfidcontroller.common.utils.Utils;

/**
 * Created by 王家宝 on 2017/8/30.
 * Email:639586819@qq.com
 * Tel:18241150668
 */

public class MyApplication extends Application {
    private static Context context;

    @Override
    public void onCreate() {
        super.onCreate();
        context = getApplicationContext();
        Beta.autoCheckUpgrade = true;
        Bugly.init(getApplicationContext(), "cca09a0953", false);

        LogUtil.showLogEnabled = Utils.isDebug(context);

    }

    public static Context getContext() {
        return context;
    }
}
